package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.inspect.BpInspectRecordPoint;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface BpInspectRecordPointRepository extends JpaRepository<BpInspectRecordPoint, Long>, JpaSpecificationExecutor<BpInspectRecordPoint> {


    void deleteByInspectRecordId(Long inspectRecordId);

    BpInspectRecordPoint findOneByInspectRecordIdAndInspectPointId(@Param("inspectRecordId") Long InspectRecordId,
                                                                   @Param("inspectPointId") Long InspectPointId);

    List<BpInspectRecordPoint> findByInspectRecordId(Long inspectRecordId);
}
